package ex4.dy;

/**
 * @author: knowno
 * @create: 2024-09-05 15:52
 * @Version 1.0
 * 动物园动物做表演
 **/
public abstract class Animal{

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Animal() {
    }

    public Animal(String name) {
        this.name = name;
    }
//    public abstract  void perform() ;

}

/**
 * 接口中主要是方法
 */
interface  IPerform{
    void perform() ;
}

